package com.share.tool.generator.sql_convert.vo;

import com.share.common.utils.StrUtil;
import lombok.Data;

import java.util.List;

@Data
public class Table {
    /*共用信息*/
    private String tableName;
    private String tableNameCamel;
    private String tableComment;
    private List<Column> columnList;

    public Table() {
    }

    public Table(String tableName) {
        this.tableName = tableName;
        this.tableNameCamel = StrUtil.under2Camel(tableName);
    }

    public Table(String tableName, List<Column> columnList) {
        this.tableName = tableName;
        this.tableNameCamel = StrUtil.under2Camel(tableName);
        this.columnList = columnList;
    }
}
